package com.wish.system.api;

import com.wish.common.core.constant.ServiceNameConstants;
import com.wish.common.core.domain.R;
import com.wish.common.core.web.page.TableDataInfo;
import com.wish.system.api.domain.House;
import com.wish.system.api.factory.RemoteHouseFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 笔者   Andy
 * 描述: // TODO
 * 时间: 2022-11-22 11:46
 */
 @FeignClient(contextId = "remoteHourseService",value = ServiceNameConstants.HOUSE_SERVICE, fallbackFactory = RemoteHouseFallbackFactory.class)
// @FeignClient(contextId = "remoteHourseService",url = "http://47.92.121.55:9301",value = ServiceNameConstants.HOUSE_SERVICE, fallbackFactory = RemoteHouseFallbackFactory.class)
 public interface RemoteHourseService {
    @GetMapping("/house/list")
    TableDataInfo list();
    @GetMapping("/house/getHouseById")
    R<House> getHouseById(@RequestParam("id") Integer id);

    @GetMapping("/house/bulkIndex")
    public void bulkIndex();
}
